take a joke
Accept teasing at one's own expense, as in
Sam really couldn't take a joke
. This idiom, often put negatively, was first recorded in 1780. Also see
take it